//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.IO;
using OpenLS.Spreadsheet.Expressions;

namespace OpenLS.Spreadsheet.Formats.Biff.Tokens
{
    internal class MemAreaNToken : FormulaToken
    {
        private readonly AccessorType _type;

        public MemAreaNToken(AccessorType type)
        {
            _type = type;
        }
        public override FormulaTokenId TokenId
        {
            get { switch (_type)
            {
                case AccessorType.Array:
                    return FormulaTokenId.MemAreaNA;
                    case AccessorType.Reference:
                    return FormulaTokenId.MemAreaN;
                    case AccessorType.Value:
                    return FormulaTokenId.MemAreaNV;
                default:
                    throw new NotSupportedException();
            }
            }
        }

        public override ushort GetLength(FormulaReadContextType formulaReadContextType)
        {
            throw new NotImplementedException();
        }

        internal override void ReadContent(FormulaReadContext context)
        {
            throw new NotImplementedException();
        }

        public override void WriteContent(FormulaWriteContext context)
        {
            throw new NotImplementedException();
        }
        internal override Expression GetExpression(FormulaEvaluationContext context)
        {
            throw new NotImplementedException();
        }
    }
}